package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicCartypeMapper;
import com.whq.entity.BasicCartype;
import com.whq.service.BasicCartypeService;

@Service(value = "tcBasicCartypeService")
public class BasicCartypeServiceImpl implements BasicCartypeService {

    @Autowired
    private BasicCartypeMapper<BasicCartype>tcBasicCartypeMapper;
    
    @Override
    public Integer insertSelective(BasicCartype tcBasicCartype) throws Exception {
           return this.tcBasicCartypeMapper.insertSelective(tcBasicCartype);
        }

    @Override
    public Integer insertBatch(List<BasicCartype> tcBasicCartype) throws Exception {
           return this.tcBasicCartypeMapper.insertBatch(tcBasicCartype) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcBasicCartypeMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcBasicCartypeMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicCartype tcBasicCartype) {
           return this.tcBasicCartypeMapper.updateByPrimaryKeySelective(tcBasicCartype);
    }

    @Override
    public BasicCartype findById(Object id) {
           return (BasicCartype) this.tcBasicCartypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicCartype> selectByCondition(BasicCartype tcBasicCartype) {
           return (List<BasicCartype>) this.tcBasicCartypeMapper.selectByCondition(tcBasicCartype);
    }

    @Override
    public Integer selectCountByCondition(BasicCartype tcBasicCartype) {
           return  this.tcBasicCartypeMapper.selectCountByCondition(tcBasicCartype);
    }

}
